<extend name="Layout:layout_list" />
<block name="body_content_block">
    <table id="main_grid" class="easyui-datagrid" data-url="{:AddonU('Task/get_taskhistory_list_json')}"></table>
    <div id="tb" style="padding:2px 5px;">
        <div style="margin-bottom: 5px; border-bottom:solid 1px #dddddd;">
            <a href="{:AddonU('Task/task_history_of_generate_batch_delete','id=varid')}" class="easyui-linkbutton lnk_grid_remove" iconCls="icon-remove" plain="true">删除</a>
            <a href="#" class="easyui-linkbutton lnk_grid_search" iconCls="icon-search" plain="true">搜索</a>
        </div>
    </div>
    <!--隐藏区域-->
    <div style="display:none">
        <!--表格查询对话框-->
        <div id="dlg_search" style="padding:10px">
            <form method="get" action="#">
                创建时间: <input name="createdTime" class="easyui-datebox" style="width:110px">
                付费方式： 
                <select name="payType" class="easyui-combobox" style="width:100px">
                    <option value="1">预付费</option>
                    <option value="0">后付费</option>
                </select>
            </form>
        </div>
        <!--/表格查询对话框-->
    </div>
    <!--/隐藏区域-->
</block>
<block name="body_after_block">
    <script type="text/javascript">
        // 页面初始化
        var curd_grid = CurdGrid.newInstance();
        curd_grid.config({
            title: '任务历史记录',
            toolbar: '#tb',
            columns: [[
                    {field: 'ck', checkbox: true},
                    {title: "租户ID", field: "siteIDText", sortable: true},
                    {title: "任务名称", field: "name", sortable: true},
                    {title: "外呼模式", field: "taskStrategyName", sortable: true},
                    {title: "归属地号段", field: "areaName", sortable: true},
                    {title: "运营商", field: "operatorText", sortable: true},
                    {title: "开始号码", field: "startNo", sortable: true},
                    {title: "结束号码", field: "endNo", sortable: true},
                    {title: "尾数选号", field: "lastNo", sortable: true},
                    {title: "号码前缀", field: "prefix", sortable: true},
                    {title: "创建时间", field: "createdTime", sortable: true},
                    {title: "编号", field: "id", hidden: true},
                ]],
        });
        curd_grid.init();
    </script>
</block>